package svc

import (
	"box-serve/api/internal/config"
	"box-serve/boxserverpc/boxserverpcclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config      config.Config
	BoxServeRpc boxserverpcclient.Boxserverpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		BoxServeRpc: boxserverpcclient.NewBoxserverpc(zrpc.MustNewClient(c.BoxServeRpc)),
	}
}
